//
//  GKZYMainTabBarViewController.m
//  GKZYAid
//
//  Created by lanou3g on 16/2/27.
//  Copyright © 2016年 GKZYAid. All rights reserved.
//

#import "GKZYMainTabBarViewController.h"

@interface GKZYMainTabBarViewController ()

@end

@implementation GKZYMainTabBarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    GKZYMessageViewController *messageVC = [[GKZYMessageViewController alloc] init];
    UINavigationController *messageNC = [[UINavigationController alloc] initWithRootViewController:messageVC];
    messageNC.tabBarItem.image = [UIImage imageNamed:@"message24"];
    messageNC.tabBarItem.title = @"资讯";
    
    GKZYSortViewController *sortVC = [[GKZYSortViewController alloc] init];
    UINavigationController *sortNC = [[UINavigationController alloc] initWithRootViewController:sortVC];
    sortNC.tabBarItem.image = [UIImage imageNamed:@"sort24"];
    sortNC.tabBarItem.title = @"查询";
    
    GKZYPostBarHomePageViewController *postBarVC = [[GKZYPostBarHomePageViewController alloc] init];
    UINavigationController *postBarNC = [[UINavigationController alloc] initWithRootViewController:postBarVC];
    postBarNC.tabBarItem.image = [UIImage imageNamed:@"postbar24"];
    postBarNC.tabBarItem.title = @"贴吧";
    
    GKZYUserCenterViewController *userVC = [[GKZYUserCenterViewController alloc] init];
    UINavigationController *userNC = [[UINavigationController alloc] initWithRootViewController:userVC];
    userNC.tabBarItem.image = [UIImage imageNamed:@"user24"];
    userNC.tabBarItem.title = @"我的";
    
    self.viewControllers = @[sortNC,messageNC,postBarNC,userNC];
    self.tabBar.tintColor = [UIColor orangeColor];
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
